package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class AlterRoutineCharacteristics {

    private int beginIndex;
    private int endIndex;
    private List<AlterRoutineCharacteristic> alterRoutineCharacteristicList;

    public AlterRoutineCharacteristics(List<AlterRoutineCharacteristic> alterRoutineCharacteristicList) {
        this.beginIndex = alterRoutineCharacteristicList.get(0).getBeginIndex();
        this.endIndex = alterRoutineCharacteristicList.get(alterRoutineCharacteristicList.size() - 1).getEndIndex();
        this.alterRoutineCharacteristicList = alterRoutineCharacteristicList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return alterRoutineCharacteristicList.size();
    }

    public AlterRoutineCharacteristic get(int index) {
        return alterRoutineCharacteristicList.get(index);
    }

}
